﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WpfUMLTry1;

namespace WpfUMLTry1.View
{
    /// <summary>
    /// Interaction logic for GameOver.xaml
    /// </summary>
    public partial class GameOver : Page
    {
        public GameOver(Model.gameModel model)
        {
            InitializeComponent();
            String str;
            str = "You were a brave hero, " + model.GetPlayCaharacter().name + "(" + model.GetPlayCaharacter().level + "),\nbut unfortunetly\na bloodthirsty animal killed you.\n";          
            DeadText.Content=str;
        }

        private void AcceptDead_Click(object sender, EventArgs e)
        {
            View.Switcher.Switch(new View.MainMenu());
        }
    }
}
